/////////////////////////////////////////////////////////////////////////////
// Copyright(c) 2012-2015 purang All Rights Reserved
// Name:        timer.cc
// Purpose:     
// Author:      syy
// Modified by: 
// Created:     2014/1/3 14:19
// RCS-ID:      
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#if defined(CCORE_WIN) || defined(_MSC_VER)
#include "timer_win.h"
#elif defined(CCORE_MAC) || defined(CCORE_IOS)
#include "timer_oc.h"
#elif defined(CCORE_LINUX) || defined(CCORE_POSIX)
#include "timer_posix.h"
#endif

namespace qb
{
	TimerWrapper* TimerWrapper::CreateTimer()
	{
#if defined(CCORE_WIN) || defined(_MSC_VER)
		return new TimerWin();
#elif defined(CCORE_MAC) || defined(CCORE_IOS)
        return new TimerOc();
#elif defined(CCORE_ANDROID) || defined(CCORE_POSIX)
        return new TimerPosix();
#else
		return NULL;
#endif
	}

}  // namespace qb
